/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entity;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 *
 * @author Human Booster
 */
@Embeddable
public class LicencecustomerPK implements Serializable {
    @Basic(optional = false)
    @Column(name = "id")
    private int id;
    @Basic(optional = false)
    @Column(name = "LicenceSoftware_id")
    private int licenceSoftwareid;
    @Basic(optional = false)
    @Column(name = "LicenceSoftware_LifeTime_id")
    private int licenceSoftwareLifeTimeid;
    @Basic(optional = false)
    @Column(name = "LicenceSoftware_Software_id")
    private int licenceSoftwareSoftwareid;
    @Basic(optional = false)
    @Column(name = "LicenceSoftware_LicenceCounterLimit_id")
    private int licenceSoftwareLicenceCounterLimitid;
    @Basic(optional = false)
    @Column(name = "CustomerOrder_id")
    private int customerOrderid;
    @Basic(optional = false)
    @Column(name = "Customer_id")
    private int customerid;

    public LicencecustomerPK() {
    }

    public LicencecustomerPK(int id, int licenceSoftwareid, int licenceSoftwareLifeTimeid, int licenceSoftwareSoftwareid, int licenceSoftwareLicenceCounterLimitid, int customerOrderid, int customerid) {
        this.id = id;
        this.licenceSoftwareid = licenceSoftwareid;
        this.licenceSoftwareLifeTimeid = licenceSoftwareLifeTimeid;
        this.licenceSoftwareSoftwareid = licenceSoftwareSoftwareid;
        this.licenceSoftwareLicenceCounterLimitid = licenceSoftwareLicenceCounterLimitid;
        this.customerOrderid = customerOrderid;
        this.customerid = customerid;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getLicenceSoftwareid() {
        return licenceSoftwareid;
    }

    public void setLicenceSoftwareid(int licenceSoftwareid) {
        this.licenceSoftwareid = licenceSoftwareid;
    }

    public int getLicenceSoftwareLifeTimeid() {
        return licenceSoftwareLifeTimeid;
    }

    public void setLicenceSoftwareLifeTimeid(int licenceSoftwareLifeTimeid) {
        this.licenceSoftwareLifeTimeid = licenceSoftwareLifeTimeid;
    }

    public int getLicenceSoftwareSoftwareid() {
        return licenceSoftwareSoftwareid;
    }

    public void setLicenceSoftwareSoftwareid(int licenceSoftwareSoftwareid) {
        this.licenceSoftwareSoftwareid = licenceSoftwareSoftwareid;
    }

    public int getLicenceSoftwareLicenceCounterLimitid() {
        return licenceSoftwareLicenceCounterLimitid;
    }

    public void setLicenceSoftwareLicenceCounterLimitid(int licenceSoftwareLicenceCounterLimitid) {
        this.licenceSoftwareLicenceCounterLimitid = licenceSoftwareLicenceCounterLimitid;
    }

    public int getCustomerOrderid() {
        return customerOrderid;
    }

    public void setCustomerOrderid(int customerOrderid) {
        this.customerOrderid = customerOrderid;
    }

    public int getCustomerid() {
        return customerid;
    }

    public void setCustomerid(int customerid) {
        this.customerid = customerid;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (int) id;
        hash += (int) licenceSoftwareid;
        hash += (int) licenceSoftwareLifeTimeid;
        hash += (int) licenceSoftwareSoftwareid;
        hash += (int) licenceSoftwareLicenceCounterLimitid;
        hash += (int) customerOrderid;
        hash += (int) customerid;
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof LicencecustomerPK)) {
            return false;
        }
        LicencecustomerPK other = (LicencecustomerPK) object;
        if (this.id != other.id) {
            return false;
        }
        if (this.licenceSoftwareid != other.licenceSoftwareid) {
            return false;
        }
        if (this.licenceSoftwareLifeTimeid != other.licenceSoftwareLifeTimeid) {
            return false;
        }
        if (this.licenceSoftwareSoftwareid != other.licenceSoftwareSoftwareid) {
            return false;
        }
        if (this.licenceSoftwareLicenceCounterLimitid != other.licenceSoftwareLicenceCounterLimitid) {
            return false;
        }
        if (this.customerOrderid != other.customerOrderid) {
            return false;
        }
        if (this.customerid != other.customerid) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "entity.LicencecustomerPK[ id=" + id + ", licenceSoftwareid=" + licenceSoftwareid + ", licenceSoftwareLifeTimeid=" + licenceSoftwareLifeTimeid + ", licenceSoftwareSoftwareid=" + licenceSoftwareSoftwareid + ", licenceSoftwareLicenceCounterLimitid=" + licenceSoftwareLicenceCounterLimitid + ", customerOrderid=" + customerOrderid + ", customerid=" + customerid + " ]";
    }
    
}
